home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
misc
/
shellscr
/
src
/
ep.sd
< prev
next >
Wrap
Text File
|
1999-11-30
|
369b
|
26 lines
##stringtype E
OPT MODULE
MODULE 'locale'
OBJECT catstr
id, str
ENDOBJECT
EXPORT CONST %i=%d
EXPORT PROC get_str(cat, id)
DEF str=NIL, block:PTR TO catstr
block := [
%d, %s,
NIL, NIL
]
WHILE block.str
IF block.id = id THEN str := block.str
EXIT block.id++ = id
ENDWHILE
ENDPROC IF localebase THEN GetCatalogStr(cat, id, str) ELSE str